package ownserver;

import java.io.Serializable;
import java.util.Iterator;

import base.Visibility;

import com.sun.sgs.app.ManagedObject;
import com.sun.sgs.app.ManagedReference;
import com.sun.sgs.app.util.ScalableList;

public class ServerVisibility extends Visibility implements ManagedObject, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public ServerVisibility(ManagedReference<ScalableList<ServerShip>> shipsRef) {
		super();
		this.shipsRef = shipsRef;
	}
	
	protected Iterator getShipIterator()
	{
		return shipsRef.get().iterator();
	}
	
	ManagedReference<ScalableList<ServerShip>> shipsRef = null;
}
